package com.tree.backend.exception;

import lombok.Getter;
import lombok.ToString;

@Getter
@ToString
public class GlobalException extends RuntimeException {
    private int code = 500;

    public GlobalException(String message) {
        super(message);
    }

    public GlobalException(Integer code, String message) {
        super(message);
        this.code = code;
    }
}